package com.taol.tab_05_indent_fragment;

import com.taol.ataoloveapp.R;
//import com.taol.tab_05_indent.GetIndentInfo1;
import com.taol.tab_05_indent.GetIndentInfo2;
import com.taol.tab_05_indent.IndentAdapter1;
import com.taol.tab_05_indent.IndentAdapter2;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

public class FragmentTab2 extends Fragment{
	private ListView lv2;
	private IndentAdapter2 myIndentAdapter2; 
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.indent_tab2, container, false);
		
		GetIndentInfo2.getIndentInfo(getActivity());
		myIndentAdapter2 = new IndentAdapter2(GetIndentInfo2.lvIndents,getActivity());
		lv2 = (ListView)view.findViewById(R.id.indentLv2);
		lv2.setAdapter(myIndentAdapter2);
		
		return view; 
	}

}
